package cn.tedu.csmallproducts.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumUpdateDTO implements Serializable {
    @ApiModelProperty(value = "相册名称", required = true, example = "演示数据001")
    @NotNull(message = "必须填写相册名称")
    private String name;

    @ApiModelProperty(value = "相册简介", required = true, example = "演示数据的简介001")
    @NotNull(message = "必须填写相册简介")
    private String description;

    @ApiModelProperty(value = "相册排 序",required = true, example = "99")
    @NotNull(message = "必须填写相册排序")
    @Range(max = 255,message = "排序序号必须是[0,,255]区间的数值")
    private Integer sort;
}
